package com.intelligentcar.springboot.controller;

import com.intelligentcar.springboot.bean.Linelist;
import com.intelligentcar.springboot.service.LinelistServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Controller
public class LinelistController {
    @Autowired
    private LinelistServer linelistServermpl;

    //查询线路编号
    @RequestMapping("/number")
    @ResponseBody
    public Map number() {
        Map map = new HashMap();
        List<Linelist> list = linelistServermpl.number();
        map.put("list", list);
        return map;
    }
}
